home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Shareware / IDimager Personal 4.2.0.3 / setup_IDimager_Personal_V4.exe / {app} / web / index.psc < prev    next >
Text File  |  2008-08-06  |  4KB  |  98 lines

  1. %include modules\uservalidate.inc %/include
  2.  
  3. <html>
  4.  
  5. <!--
  6.  
  7. Want to know more about Ajax with Prototype? Start reading here
  8. http://www.sergiopereira.com/articles/prototype.js.html#Whatsthat
  9.  
  10. -->
  11.  
  12.  
  13. <head>
  14.   <title>IDimager Catalog Browser</title>
  15.  
  16.   <link rel="stylesheet" href="%var:PageOffset/idimager.css" type="text/css"/>
  17.  
  18.   <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  19.  
  20.   %include api.inc %/include
  21.  
  22. </head>
  23.  
  24. <body onLoad="javascript: doInit();
  25.               getHTML('%var:PageOffset/modules/labeltree.psc', 'top', 'GUID=top&showCounts=n&level=0');
  26.               getHTML('%var:PageOffset/modules/albumtree.psc', 'portfolio', 'GUID=top&showCounts=y&level=0');
  27.               getHTML('%var:PageOffset/modules/frontpage.psc', 'thumbs', '');
  28.              "
  29. >
  30.  
  31. <div id="mainLeft">
  32.       <div id="homeBox">
  33.         <a href="%var:PageOffset/index.psc"><img id="imgHome" src="%var:PageOffset/images/home.png"></a>
  34.       </div>
  35.       <div id="searchBox">
  36.         <input id="searchInput" 
  37.                name="dfSearch" 
  38.                value="search" 
  39.                onKeyPress="javascript:checkEnter(event);" 
  40.                onClick="javascript:selectAll();"
  41.         >
  42.       </div>
  43.  
  44.       <div id="caption">
  45.         Catalog Labels
  46.       </div>
  47.       <div id="top" style="float: left; width: 100%;">
  48.         (loading...)
  49.       </div>
  50.  
  51.       <div id="caption">
  52.         Portfolios
  53.       </div>
  54.       <div id="portfolio" style="float: left;width: 100%;">
  55.         (loading...)
  56.       </div>
  57.  
  58.       <div id="caption">
  59.         Ratings
  60.       </div>
  61.       <div id="ratings" style="float: left;width: 100%;">
  62.         <a href="#" onClick="javascript:getHTML('%var:PageOffset/modules/rating.psc', 'thumbs', 'rating=5'); return false;"><img src="%var:PageOffset/images/5_rating.png" alt="5 star rated" title="5 star rated"></a><br/>
  63.         <a href="#" onClick="javascript:getHTML('%var:PageOffset/modules/rating.psc', 'thumbs', 'rating=4'); return false;"><img src="%var:PageOffset/images/4_rating.png" alt="4 star rated" title="4 star rated"></a><br/>
  64.         <a href="#" onClick="javascript:getHTML('%var:PageOffset/modules/rating.psc', 'thumbs', 'rating=3'); return false;"><img src="%var:PageOffset/images/3_rating.png" alt="3 star rated" title="3 star rated"></a><br/>
  65.         <a href="#" onClick="javascript:getHTML('%var:PageOffset/modules/rating.psc', 'thumbs', 'rating=2'); return false;"><img src="%var:PageOffset/images/2_rating.png" alt="2 star rated" title="2 star rated"></a><br/>
  66.         <a href="#" onClick="javascript:getHTML('%var:PageOffset/modules/rating.psc', 'thumbs', 'rating=1'); return false;"><img src="%var:PageOffset/images/1_rating.png" alt="1 star rated" title="1 star rated"></a><br/>
  67.       </div>
  68.  
  69.  
  70.       <div style="float: left; width: 100%;">
  71.          <br/>
  72.         %code
  73.  
  74.           result := toWideString('');
  75.           if SessionData.Prop['IsAdmin'] then
  76.           begin
  77.             result := result + '<a href="%var:PageOffset/logout.psc">';
  78.             result := result + '<img src="%var:PageOffset/images/adminuser.png" alt="you have admin rights..." title="you have admin rights...">';
  79.             result := result + '</a>';
  80.           end
  81.           else
  82.           begin
  83.             result := result + '<a href="%var:PageOffset/logout.psc">';
  84.             result := result + '<img src="%var:PageOffset/images/logout.png" alt="logout..." title="logout...">';
  85.             result := result + '</a>';
  86.           end
  87.  
  88.         %/code
  89.  
  90.         <a href="http://www.idimager.com"><img src="%var:PageOffset/images/idimager-icon.png" alt="powered by IDimager" title="powered by IDimager"></a>
  91.       </div>
  92. </div>
  93.  
  94. <div id="thumbs">
  95. </div>
  96.  
  97. </body>
  98. </html>